package com.leon.workenginespace.learnjava;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;

/**
 * @description: TODO
 * @author: WT
 * @date: 2024/3/14 23:54
 * @Version 1.0
 **/
public class ThreadMain {
    public static void main(String[] args) throws InterruptedException {
//        Thread t = new MyThread();
//        t.start();
//        Thread.sleep(1);
//        t.interrupt(); // 中断t线程
//        t.join(); // 等待t线程结束
//        System.out.println("end");
        ReverseArrayIterable<Object> objects = new ReverseArrayIterable<>(1,2,3,4);

        for (Iterator<Object> iterator = objects.iterator(); iterator.hasNext(); ) {
            Object s = iterator.next();
            System.out.println(s);
        }
    }
}
